const getters = {
  sidebar: state => state.app.sidebar,
  token: state =>
    state.app.tokenInfo
      ? `${state.app.tokenInfo.token_type} ${state.app.tokenInfo.access_token}`
      : null,
  roles: state => state.app.roles,
  permission_routes: state => state.app.permission_routes,
}

export default getters
